Skip to main content

Add Image

AutomatR.GoogleForms.Activities.AddImage

The "Add Image" activity in AutomatR is part of the Google Forms activities package, allowing automation processes to add an image question to a Google Form. This activity facilitates the creation of visually enriched forms by adding image-based questions with customizable properties.

Properties

NameDescription
Input
CaptionEnter the caption for the image. String variables containing the caption text for the image.
FormIDEnter the Form ID to which the image question should be added. String variables containing the Form ID. This field is required.
SourceURIEnter the source URI for the image. This URI is used to insert the image into the form. String variables containing the image source URI. This field is required.
TitleProvide the title for the image question. String variables containing the title of the image question. This field is required.
ImageAlignmentSelect the alignment type for the image within the form. Choose from predefined alignment types Left, Center or Right.
LocationSpecify the location or position where the image question should be created in the form. Integer variables containing the location index.
Miscellaneous
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before starting the activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs the response as Form Details. Variables of type Google.Apis.Forms.v1.Data.BatchUpdateFormResponse to store the response details.

How to use:

  1. Drag and drop the "Add Image" activity onto the workflow.
  2. Configure the properties by specifying the Form ID, image title, source URI, and other optional settings.
  3. Optionally, configure the delay before starting the activity.
  4. Execute the workflow to add an image question to the specified Google Form.

Example:

Consider an example where the "Add Image" activity is used to add an image question titled "Company Logo" with the source URI "https://example.com/logo.png" to a Google Form with a Form ID of "abc123":

Add Image:
FormID: "abc123"
Title: "Company Logo"
SourceURI: "https://example.com/logo.png"
Caption: "Upload the company logo"
ImageAlignment: Center
Location: 2
Result: formUpdateResponse

In this example, the activity adds an image question to the Google Form with the specified Form ID, title, source URI, caption, alignment, and location. The response details are stored in the variable "formUpdateResponse" for further analysis or use in the workflow.